home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 4 code / C++ Driver / iacDriver / DriverWrapper.h < prev    next >
Encoding:
Text File  |  1990-08-13  |  1.5 KB  |  39 lines  |  [TEXT/MPS ]

  1. // Copyright © 1989 Apple Computer, Inc. All rights reserved.
  2.  
  3.  
  4. #ifndef __DriverWrapper__            // We do this so the header gets evaluated only once.
  5. #define __DriverWrapper__
  6.  
  7. /**********************************Comment*****************************************
  8.  * We declare these as extern "C" routines so we can have straight C (and in this 
  9.  * case Pascal) calling conventions.  Notice the pointer to the 
  10.  * parameter block (ParmBlkPtr) and the pointer to the Device Control Entry (DCtlPtr)
  11.  * being passed in.  We've already set these up on the stack in DriverGlue.a.
  12.  **********************************End Comment************************************/
  13. #ifdef __cplusplus
  14. extern "C" {                            
  15. #endif                                    
  16.                                             
  17.  
  18. #include    <Types.h>
  19. #include    <Devices.h>
  20. #include    <Memory.h>
  21. #include    <Files.h>
  22.  
  23.      OSErr     TSDRVROpen(ParmBlkPtr oParmBlock,DCtlPtr tsDCEPtr);
  24.     OSErr        TSDRVRClose(ParmBlkPtr cParmBlock,DCtlPtr tsDCEPtr);
  25.     OSErr        TSDRVRStatus(ParmBlkPtr sParmBlock,DCtlPtr tsDCEPtr);
  26.     OSErr        TSDRVRPrime(ParmBlkPtr pParmBlock,DCtlPtr tsDCEPtr);
  27.     OSErr        TSDRVRControl(ParmBlkPtr cntlParmBlock,DCtlPtr tsDCEPtr);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31.  
  32. /**********************************Comment*****************************************
  33.  *Finally, I have to define my own string copying routine because the stdio library
  34.  * uses A5 and the global space.  I can't have that here, so I make my own little
  35.  * utility routine.
  36.  **********************************End Comment************************************/
  37.  
  38. char            *tseStrCpy(char *s, char *t);
  39. #endif